projects
/
feed
/
telephony.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3d6a46
)
freeswitch: use return in init script
author
Sebastian Kemper
<
[email protected]
>
Tue, 8 Nov 2022 20:19:19 +0000
(21:19 +0100)
committer
Sebastian Kemper
<
[email protected]
>
Tue, 22 Aug 2023 19:52:53 +0000
(21:52 +0200)
"start_service()" is a function, hence "return" should be used instead
of "exit".
Signed-off-by: Sebastian Kemper <
[email protected]
>
(cherry picked from commit
9604a203d5b749e5ef17f5dcc6cfebbb4afeb7f6
)
net/freeswitch/files/freeswitch.init
patch
|
blob
|
history
diff --git
a/net/freeswitch/files/freeswitch.init
b/net/freeswitch/files/freeswitch.init
index c390b9fca4c9c9a03e967d5f17e907e8cc1f544f..f2b0c9c1343d9ae8af80e90a960ceb820836a27d 100644
(file)
--- a/
net/freeswitch/files/freeswitch.init
+++ b/
net/freeswitch/files/freeswitch.init
@@
-26,7
+26,7
@@
start_service() {
config_get_bool enabled general enabled 0
if [ $enabled -eq 0 ]; then
$LOG_ERR service not enabled in /etc/config/$NAME
-
exit
1
+
return
1
fi
config_get_bool log_stderr general log_stderr 1
@@
-46,7
+46,7
@@
start_service() {
$LOG_INFO using procd\'s default term_timeout
elif ! [ 0 -lt "$term_timeout" ] 2>/dev/null; then
$LOG_ERR invalid term_timeout in /etc/config/$NAME
-
exit
1
+
return
1
fi
for i in "$dir_localstate" "$dir_run"; do